import unittest
from apps.ue.models import EdibleType

class EdibleTypeTestCase(unittest.TestCase):
    def setUp(self):
        self.my = EdibleType.objects.create(
            common_name = "My Common Name",
            formal_name = "My Formal Name",
            edibility = 1,
            Season_info = "My season info for this edible type",
            ident_info = "My ident info",
            harvesting_info = "My harvesting info",
            prep_info = "My prep info",
            preserving_info = "My preserving info",
            med_use = "My med use",
            warnings = "My warnings"
        )

    def testUnicode(self):
        # example test that isn't useful at all
        self.assertEquals(self.my.__unicode__(), u'My Common Name')
